package com.yf1706.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yf1706.bean.User;
import com.yf1706.service.UserService;
import com.yf1706.vo.UserEmpDepVO;

@Controller
@RequestMapping("user")
public class UserController {
	@Autowired
	private UserService us; 
	
	@RequestMapping("findAllUser")
	@ResponseBody
	public List<User> findAllUser(){
		return us.findAllUser();
	}
	
	@RequestMapping("findAllUserBasic")
	@ResponseBody
	public List<UserEmpDepVO> findAllUserBasic(){
		return us.fundUserBasic();
	}
}
